
package cn.com.pusai.base.person.action;

//import cn.com.pusai.base.login.model.LoginObject;
import cn.com.pusai.base.person.service.PersonService;
import cn.com.pusai.common.action.BaseAction;

//import cn.com.pusai.common.util.SystemUtil;

public class PersonPasswordAction extends BaseAction {

	private PersonService personService;
	private String oldPassword;
	private String password;

	public PersonPasswordAction() {
	}

	public void setPersonService(PersonService personService) {
		this.personService = personService;
	}

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String editPassword() throws Exception {
		return "edit";
	}

	// public String modifyPassword()
	// throws Exception
	// {
	// String errorInfo = null;
	// LoginObject loginObj;
	// loginObj = SystemUtil.getLoginObject();
	// if (loginObj != null)
	// break MISSING_BLOCK_LABEL_21;
	// errorInfo = "";
	// addInfo(errorInfo);
	// return "edit";
	// if (loginObj.getPersonId() != null && getOldPassword() != null &&
	// getPassword() != null)
	// {
	// personService.updatePassword(loginObj.getPersonId(), getOldPassword(),
	// getPassword());
	// break MISSING_BLOCK_LABEL_77;
	// }
	// errorInfo = "";
	// addInfo(errorInfo);
	// return "edit";
	// try
	// {
	// setActionStatus("success");
	// }
	// catch (Exception e)
	// {
	// handleException(e);
	// return "edit";
	// }
	// return editPassword();
	// }
}
